package cn.bdqn.controller;

import cn.bdqn.service.SysRightService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("/right")
public class SysRightController {
    @Resource
    SysRightService sysRightService;
    @RequestMapping("/reload")
    public String reload(){
        sysRightService.reLoadShiro();
        return "redirect:/main";
    }
}
